package com.example.foobar.dao.service;

import com.example.foobar.entity.DidiPromotion;
import com.example.foobar.param.DidiPromotionPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

/**
 * 滴滴推广位 服务类
 *
 * @author 郑英奔
 * @since 2021-11-16
 */
public interface DidiPromotionDaoService extends BaseService<DidiPromotion> {

    /**
     * 保存
     *
     * @param didiPromotion
     * @return
     * @throws Exception
     */
    boolean saveDidiPromotion(DidiPromotion didiPromotion) throws Exception;

    /**
     * 修改
     *
     * @param didiPromotion
     * @return
     * @throws Exception
     */
    boolean updateDidiPromotion(DidiPromotion didiPromotion) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteDidiPromotion(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param didiPromotionQueryParam
     * @return
     * @throws Exception
     */
    Paging<DidiPromotion> getDidiPromotionPageList(DidiPromotionPageParam didiPromotionPageParam) throws Exception;

}
